import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CatalogService } from './catalog.service';
import { CatalogController } from './catalog.controller';
import { CatalogEntity } from './catalog.entity';
import { ArticleContentModule } from '../article/article-content/article-content.module';
import { MissionModule } from '../mission/mission.module';
import { MissionLogModule } from '../mission/mission-log/mission-log.module';

@Module({
  imports: [TypeOrmModule.forFeature([CatalogEntity]), ArticleContentModule, forwardRef(() => MissionModule), forwardRef(() => MissionLogModule)],
  controllers: [CatalogController],
  providers: [CatalogService],
  exports: [CatalogService, TypeOrmModule],
})
export class CatalogModule {}
